package com.stormrage.entity.excel;

import java.io.Serializable;

import org.jeecgframework.poi.excel.annotation.Excel;

public class ExmOperExcel implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -4116150931310904740L;

	// ------------------------------- Fields -------------------------------

	@Excel(name = "编号")
	private Integer id;

	@Excel(name = "学号")
	private String stuNo;

	@Excel(name = "姓名")
	private String name;

	@Excel(name = "实操成绩")
	private Integer score;

	// ------------------------------- Fields -------------------------------

	public ExmOperExcel() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getStuNo() {
		return stuNo;
	}

	public void setStuNo(String stuNo) {
		this.stuNo = stuNo;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	// ------------------------------- Fields -------------------------------

	public static ExmOperExcel instance(Integer id, String stuNo, String name) {
		ExmOperExcel entity = new ExmOperExcel();
		entity.setId(id);
		entity.setStuNo(stuNo);
		entity.setName(name);
		entity.setScore(0);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " stuNo - " + stuNo + " name - " + name + " score - " + score;
	}

}
